package com.cz.run.beans.mysql;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 广告
 * </p>
 *
 * @author CAIYJ
 * @since 2018-05-23
 */
public class Advertisement extends Model<Advertisement> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 任务ID
     */
    @TableField("task_id")
    private Integer taskId;
    /**
     * 图片
     */
    private String image;
    /**
     * 排序
     */
    private Integer sort;

    /**
     *1:普通广告；2：banner广告
     */
    private Integer type;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTaskId() {
        return taskId;
    }

    public void setTaskId(Integer taskId) {
        this.taskId = taskId;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "Advertisement{" +
        ", id=" + id +
        ", taskId=" + taskId +
        ", image=" + image +
        ", sort=" + sort +
        "}";
    }
}
